package sim.ring.tower;

import java.util.Date;

import sim.ring.technical.*;

public class Bell {
	private int id=-1;
	private Tower tower;
	private int number=0;
	private String weight="";
	private float diameter=0;
	private String note="";
	//private Foundry foundry;
	private String audioFile="";
	private Date castDate;
	
	public Bell(int number, String audioFile) {
		this.number=number;
		this.audioFile=audioFile;
		this.weight="";
		this.note="";
	}
	
	public Bell(int number, String audioFile, String weight, float diameter, String note) {
		this.number=number;
		this.audioFile=audioFile;
		this.weight=weight;
		this.note=note;
		this.diameter=diameter;
	}
	
	public void setWeight(String weight) {
		this.weight=weight;
	}
	
	public String getWeight() {
		return weight;
	}
	
	public void setNote(String note) {
		this.note=note;
	}
	
	public String getNote() {
		return note;
	}
	
	public String getAudioFileName() {
		return audioFile;
	}
	
	public void ring() {
		TechnicalManager.getInstance().playSound(audioFile);
	}
	
	public int getNumber() {
		return number;
	}

	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public float getDiameter() {
		return diameter;
	}

	public void setDiameter(float diameter) {
		this.diameter = diameter;
	}

	public Date getCastDate() {
		return castDate;
	}

	public void setCastDate(Date castDate) {
		this.castDate = castDate;
	}
	
	public Tower getTower() {
		return tower;
	}

	public void setTower(Tower tower) {
		this.tower=tower;
	}
}
